package com.xy;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
// 启动Eureka客户端，注册服务
@EnableEurekaClient
// 开启断路器
@EnableCircuitBreaker
public class ApiProviderServer {
    public static void main(String[] args) {
        SpringApplication.run(ApiProviderServer.class, args);
    }
    //测试地址
    //http://192.168.13.112:8080/lsd/pr/provider/dept/get/5
}